package org.msd.controller;
import org.msd.model.Reserve;
import org.msd.service.iml.ReServeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;

@Controller
@RequestMapping("/show")
public class ShowScheduled {
    @Autowired
    private ReServeService reServeService;
    @RequestMapping("res")
    @ResponseBody
    public List<Reserve>  ShowReSERVE(){
        List<Reserve> reserveList=reServeService.Queryall();//查询所有的订单
        return reserveList;
    }
}
